package ssm.Test.JavaMain.entity;

import java.io.Serializable;

/**
 * @Author Maple.Chen
 * @Description 雇员，薪水工
 * @Date 11:36 2020/4/26
 **/
public class SalaryEmployee extends Employee implements Serializable {
    private Double salary; // 薪水工薪资

    public SalaryEmployee(){
    }

    public SalaryEmployee(Double salary) {
        this.salary = salary;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "SalaryEmployee{" +
                "id=" + super.getId() +
                " name=" + super.getName() +
                " salary=" +salary +
                '}';
    }
}
